package org.quipu.client;

import org.quipu.client.events.AppEventProducer;
import com.google.gwt.core.client.GWT;
import org.quipu.client.events.AppEventBus;

public abstract class AppEventComponent extends AppEventProducer {

    private final MainServiceAsync mainService;
    private final Messages messages;

    public AppEventComponent(AppEventBus eventBus) {
        super(eventBus);
        mainService = GWT.create(MainService.class);
        messages = GWT.create(Messages.class);
}

    public final MainServiceAsync getMainService() {
        return mainService;
    }

    public final Messages getMessages() {
        return messages;
    }

    public abstract void init();
}
